/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core;

/**
 *
 * @author MOI
 */
public class NetPaquet {
    long Id;
    Connection src;
    Connection dest;
    Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Connection getDest() {
        return dest;
    }

    public void setDest(Connection dest) {
        this.dest = dest;
    }

    public Connection getSrc() {
        return src;
    }

    @Override
    public String toString() {
        return "NetPaquet{" + "Id=" + Id + "src=" + src + "dest=" + dest + "data=" + data + '}';
    }

    public void setSrc(Connection src) {
        this.src = src;
    }

    public NetPaquet() {
        Id= Math.round(Math.random()*1000000+1);
    }

}
